using Microsoft.Modeling.StoryboardDesigner.Extensions.Features.MoveToNewStoryboard;

namespace Microsoft.Modeling.StoryboardDesigner
{
    partial class ScenarioShape
    {
        /// <summary>
        /// Override double-click behaviour to navigate to linked diagram
        /// </summary>
        /// <param name="e"></param>
        public override void OnDoubleClick(Microsoft.VisualStudio.Modeling.Diagrams.DiagramPointEventArgs e)
        {
            base.OnDoubleClick(e);

            (this.ModelElement as StoryboardElement).NavigateToStoryboardDiagram();
        }
    }
}